pub mod item;
pub mod error;
pub mod store;
pub mod container;
pub mod half_container;
pub mod chunk_container;

pub use item::*;
pub use store::*;
pub use error::*;
pub use container::*;
pub use half_container::*;
pub use chunk_container::*;

pub type ContainerId = u64;

pub fn container_position(id:ContainerId) -> u64 {
	id * crate::constants::CONTAINER_SIZE as u64
}

pub fn retrieve_container_id(position:u64) -> ContainerId {
	position / crate::constants::CONTAINER_SIZE as u64
}
